<template>
  <x-widget :type="type" v-if="type"></x-widget>
</template>

<script>
  export default {
    data () {
      return {
        type: null
      }
    },
    mounted () {
      this.init()
    },
    methods: {
      init () {
        var router = this.$ala.router()
        if (router.meta.themetype) {
          this.type = router.meta.themetype
        } else {
          this.type = router.params.themetype
        }
      }
    }
  }
</script>
